﻿<%@ Page Language="C#" MasterPageFile="~/TapuKadastro.master" AutoEventWireup="True"
    Inherits="TapuKadastroWeb.SozlesmeDonem" Title="Sözleşme Dönemi " CodeBehind="SozlesmeDonem.aspx.cs" %>

<%@ Register Src="~/UserControls/Tarih.ascx" TagName="Tarih" TagPrefix="uc2" %>
<%@ Register Src="~/UserControls/Sayi.ascx" TagName="Sayi" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="server">
    <h3 class="title">
        Sözleşme Dönem Girişi
    </h3>
    <asp:MultiView ID="mv" runat="server" ActiveViewIndex="0">
        <asp:View ID="vListe" runat="server">
            <table class="form">
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnYeniKayit" runat="server" Text="Yeni Kayıt" CausesValidation="False"
                            OnClick="btnYeniKayit_Click" />
                    </td>
                </tr>
            </table>
            <asp:GridView ID="grdSozlesmeDonemListe" runat="server" AutoGenerateColumns="False" Width="100%"
                CssClass="grid" AllowPaging="True" DataKeyNames="SozlesmeDonemID" PageSize="20" EmptyDataText="Hiç Sözleşme Numarası Kaydedilmemiştir!!!"
                OnPageIndexChanging="grdSozlesmeDonemListe_PageIndexChanging" OnRowCommand="grdSozlesmeDonemListe_RowCommand"
                OnRowDataBound="grdSozlesmeDonemListe_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="DonemYil" HeaderText="Sözlesme Yılı" />
                    <asp:BoundField DataField="SozlesmeNumarasi" HeaderText="Sözleşme Numarası" />
                    <asp:ButtonField ControlStyle-CssClass="grd_Guncelle" CommandName="duzenle" Text="Güncelle" />
                    <asp:ButtonField ControlStyle-CssClass="grd_Sil onay" CommandName="sil" Text="Sil" />
                </Columns>
                <RowStyle CssClass="even" />
                <AlternatingRowStyle CssClass="odd" />
                <EditRowStyle CssClass="odd" />
                <EmptyDataRowStyle CssClass="empty" />
            </asp:GridView>
        </asp:View>
        <asp:View ID="vKayit" runat="server">
            <table class="form">
                <tr>
                    <td class="label">
                        Sözlesme Yılı</td>
                    <td>
                        <uc3:Sayi ID="ucSozlesmeYil" runat="server" AllowEmpty="False"  />
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Sözleşme Numarası 
                    </td>
                    <td>
                        <uc3:Sayi ID="ucSozlesmeNumarasi" runat="server" AllowEmpty="False" />
                    </td>
                </tr>
                <tr>
                    <td class="buton" colspan="2">
                        <asp:Button ID="btnGeri" runat="server" CssClass="btn_back" Text="Geri" CausesValidation="False"
                            OnClick="btnGeri_Click" />
                        <asp:Button ID="btnKaydet" runat="server" Text="Kaydet" OnClick="btnKaydet_Click" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
